package baseAPI;

import javafx.scene.control.Alert;
import javafx.stage.Modality;

public class AlertStage {

    public static void show(String title, String message){
        Alert alert = new Alert(Alert.AlertType.INFORMATION);
        alert.initModality(Modality.APPLICATION_MODAL);
        alert.titleProperty().set(title);
        alert.headerTextProperty().set(message);
        alert.showAndWait();
    }
}
